import { createRouter, createWebHashHistory } from "vue-router";

const routes = [
    {
        path: "/",
        redirect: "/home",
        component: () => import("../App.vue"),
    },
    {
        path: "/home",
        component: () => import("../views/Home/Home.vue"),
    },
    {
        path: "/expanding-cards",
        component: () => import("../views/ExpandingCards/ExpandingCards.vue"),
    },
    {
        path: "/render-function",
        component: () => import("../views/RenderFunction/index.vue"),
    },
];

const router = createRouter({
    history: createWebHashHistory(),
    routes,
});

export default router;
